package org.example.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.domain.RoleMenu;

/**
* @author 14168
* @description 针对表【sys_role_menu】的数据库操作Mapper
* @createDate 2024-05-22 19:07:25
* @Entity org.example.domain.RoleMenu
*/
@Mapper
public interface RoleMenuMapper {

    @Insert("insert into sys_role_menu set role_id=2,menu_id = #{menuId}")
    void save(RoleMenu roleMenu);

    @Delete("delete from sys_role_menu where menu_id=#{id}")
    void remove(Integer id);
}




